<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/css/admin.css">
</head>
<body>
<!--新增类别表单（表格嵌套）-->
<div class="form">
    <div class="title">修改商品类别信息</div>
    <form action="/admin/category/update" method="post">
        <!--修改数据 id 设置为不可见，并随表单一起传送给后台，name 属性要与后台用于接收参数的实体类属性相同-->
        <input type="hidden" th:value="${category.categoryId}" name="categoryId">
        <table>
            <tr>
                <td>类别名称</td>
                <td>
                    <input type="text" th:value="${category.categoryName}" name="categoryName">
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input type="submit" value="修改">
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>